import { gstyRequest } from '../'
//查询调度方案列表
export async function getDispatchs(params) {
  return gstyRequest.get({
    url: '/dispatch/getDispatchs',
    showLoading: true,
    params
  })
}
//查询调度方案配置信息
export async function getDispatchInfos(params) {
  return gstyRequest.get({
    url: '/dispatch/getDispatchInfos',
    showLoading: true,
    params
  })
}
//@@@@@
//查看滚动预报调度方案
export async function getAutoDispatchScheme(params) {
  return gstyRequest.get({
    url: '/dispatch/auto/scheme/list',
    showLoading: true,
    params
  })
}
//添加滚动预报调度方案
export async function addAutoDispatchScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/auto/scheme/add',
    showLoading: true,
    data
  })
}
//修改滚动预报调度方案
export async function updateAutoDispatchScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/auto/scheme/modify',
    showLoading: true,
    data
  })
}
//删除自动预报调度方案
export async function deleteAutoDispatchScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/auto/scheme/delete',
    showLoading: true,
    data
  })
}
//查询计算方案最新场次计算进度状态
export async function getAutoSchemeStatus(params) {
  return gstyRequest.get({
    url: '/dispatch/auto/scheme/status',
    showLoading: true,
    params
  })
}
//查看水库信息
export async function getResvs(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/getResvs',
    showLoading: true,
    params
  })
}
//查询联合调度水库信息
export async function getJointResvs(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/getJointResvs',
    showLoading: true,
    params
  })
}
//查询水库调度控制条件
export async function getResvCond(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/cond',
    showLoading: true,
    params
  })
}
//查询水库调度控制条件中最高水位的值
export async function getMaxLevel(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/maxLevel',
    showLoading: true,
    params
  })
}
//规程调度-查询调度规程方案
export async function getRegsSchemes(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/regs/regsSchemes',
    showLoading: true,
    params
  })
}
//规程调度-查询调度规程内容
export async function getRegsRules(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/regs/regsRules',
    showLoading: true,
    params
  })
}
//优化调度-查询优化调度方案
export async function getOptimSchemes(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/optim/optimSchemes',
    showLoading: true,
    params
  })
}
//优化调度-查询优化调度参数
export async function getOptimParams(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/optim/optimParams',
    showLoading: true,
    params
  })
}
//添加人工调度方案
export async function addManualDispatchScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/add',
    showLoading: true,
    data
  })
}
//查看人工调度方案
export async function getManualDispatchScheme(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/list',
    showLoading: true,
    params
  })
}
//人工调度方案计算
export async function manualCalculate(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/calculate',
    showLoading: false,
    data
  })
}

//查询计算方案结果
export async function getManualSchemesresult(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/result',
    showLoading: true,
    params
  })
}
//查询计算预报断面信息
export async function getManualSchemessections(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/sections',
    showLoading: true,
    params
  })
}
//查询计算预报断面信息-分级别
export async function getGradeSections(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/gradeSections',
    showLoading: true,
    params
  })
}
//删除人工调度方案
export async function deleteManualDispatchScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/delete',
    showLoading: true,
    data
  })
}
//查询计算方案进度
export async function getComputSchemeProgress(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/progress',
    showLoading: false,
    params
  })
}
//查询调度方案断面状态
export async function getDispatchManualSchemeProgSection(params) {
  return gstyRequest.get({
    url: '/map/vectorTiles/getDispatchManualSchemeProgSection',
    showLoading: false,
    params
  })
}
//获取方案断面四角范围
export async function getDispatchManualSchemeProgSectionExtent(params) {
  return gstyRequest.get({
    url: '/map/vectorTiles/getDispatchManualSchemeProgSectionExtent',
    showLoading: false,
    params
  })
}
//添加水库调度方案
export async function addDispatchScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/addDispatchScheme',
    showLoading: true,
    data
  })
}
//修改水库调度方案
export async function editDispatchScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/editDispatchScheme',
    showLoading: true,
    data
  })
}
//添加来水预报方案
export async function addReportScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/saveReportScheme',
    showLoading: true,
    data
  })
}
//查看水库调度详情
export async function dispatchDetail(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/dispatchDetail',
    showLoading: true,
    params
  })
}
//查询调度方案状态
export async function getDispatchStatusValue(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/status',
    showLoading: false,
    params
  })
}
// 查看预报调度方案列表
export async function getDispatchSchemesList(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/schemesList',
    showLoading: false,
    params
  })
}
//查看多方案计算
export async function calculateMore(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/calculateMore',
    showLoading: false,
    data
  })
}
// 查询方案详情
export async function getDispatchSchemeDetail(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/schemeDetail',
    showLoading: true,
    params
  })
}
// 保存（实测+预报降雨）方案
export async function postSaveRealReportScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/saveRealReportScheme',
    showLoading: true,
    data
  })
}
// 保存模拟降雨方案
export async function postSaveSimulateReportScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/saveSimulateReportScheme',
    showLoading: true,
    data
  })
}
// 删除调度方案
export async function postDeleteDispatchItem(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/delete',
    showLoading: true,
    data
  })
}
// 查询方案信息
export async function getDispatchSchemeInfo(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/schemeInfo',
    showLoading: true,
    params
  })
}
//查询子方案
export async function childrenSchemes(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/childrenSchemes',
    showLoading: false,
    params
  })
}
// 查询水库调度详情
export async function resvDispatchDetail(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/resvDispatchDetail',
    showLoading: true,
    params
  })
}
// 保存断面推送方案结果映射
export async function postSaveResultPush(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/saveResultPush',
    showLoading: true,
    data
  })
}
//查询方案计算特征值信息

export async function getEigResult(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/eigResult',
    showLoading: false,
    params
  })
}
//查询调度规程方案及参数
export async function regsSchemesAll(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/regs/regsSchemesAll',
    showLoading: true,
    params
  })
}
//查询优化调度方案及参数
export async function optimSchemesAll(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/optim/optimSchemesAll',
    showLoading: true,
    params
  })
}
//保存水库调度方案
export async function saveDispatchScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/saveDispatchScheme',
    showLoading: true,
    data
  })
}
//保存水库试算方案
export async function saveTrialScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/saveTrialScheme',
    showLoading: true,
    data
  })
}
//删除水库试算方案
export async function deleteTrialScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/deleteTrialScheme',
    showLoading: true,
    data
  })
}
//试算计算 /dispatch/manual/schemes/trialCalculate
export async function trialCalculate(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/trialCalculate',
    showLoading: true,
    data
  })
}
// 查询试算计算结果
export async function trialResult(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/trialResult',
    showLoading: true,
    params
  })
}
//河道水动力计算
export async function ifmsCalculate(data) {
  return gstyRequest.post({
    url: '/ifms/ifmsCalculate',
    showLoading: false,
    data
  })
}
// 查询水库基础信息
export async function getResvBaseInfo(params) {
  return gstyRequest.get({
    url: '/base/section/getResvBaseInfo',
    showLoading: true,
    params
  })
}
// 查询水库基础指标
export async function getResvBaseInd(params) {
  return gstyRequest.get({
    url: '/base/section/getResvBaseInd',
    showLoading: true,
    params
  })
}
// 查询水库设计指标
export async function getResvDesignInd(params) {
  return gstyRequest.get({
    url: '/base/section/getResvDesignInd',
    showLoading: true,
    params
  })
}
// 查询水库调度指标
export async function getResvDispatchInd(params) {
  return gstyRequest.get({
    url: '/base/section/getResvDispatchInd',
    showLoading: true,
    params
  })
}
// 查询水库水位库容曲线
export async function getResvZvLine(params) {
  return gstyRequest.get({
    url: '/base/section/getResvZvLine',
    showLoading: true,
    params
  })
}
// 查询水库水位泄流曲线
export async function getResvZqLine(params) {
  return gstyRequest.get({
    url: '/base/section/getResvZqLine',
    showLoading: true,
    params
  })
}
// 查询河道站基础信息
export async function getStationBaseInfo(params) {
  return gstyRequest.get({
    url: '/base/section/getStationBaseInfo',
    showLoading: true,
    params
  })
}
// 查询河道防洪指标
export async function getStationFControlInd(params) {
  return gstyRequest.get({
    url: '/base/section/getStationFControlInd',
    showLoading: true,
    params
  })
}
// 查询河道水位流量关系线
export async function getStationZqrl(params) {
  return gstyRequest.get({
    url: '/base/section/getStationZqrl',
    showLoading: true,
    params
  })
}
// 查询指令调度信息
export async function getResvInsResult(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/resvInsResult',
    showLoading: true,
    params
  })
}
//查询水库调度控制条件的起调水位
export async function getResvFLevel(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getResvFLevel',
    showLoading: false,
    params
  })
}
//

export async function getResvConds(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getResvConds',
    showLoading: false,
    params
  })
}
// 查询水库调度降雨净雨值
export async function getDisPrecipitation(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getDisPrecipitation',
    showLoading: false,
    params
  })
}
//新建，修改典型场次
export async function saveTypicalReportScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/saveTypicalReportScheme',
    showLoading: true,
    data
  })
}
// 查询典型场次
export async function getTypicals(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getTypicals',
    showLoading: true,
    params
  })
}
//查询调度水库信息
export async function getDisResvs(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getDisResvs',
    showLoading: false,
    params
  })
}
//查询库群站点

export async function getRangeSections(params) {
  return gstyRequest.get({
    url: '/model/configure/params/resv/getRangeSections',
    showLoading: false,
    params
  })
}
//查看联合调度库群参数

export async function getRangeParams(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getRangeParams',
    showLoading: true,
    params
  })
}
//保存联合调度试算方案
export async function saveTrialJointScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/saveJointTrialScheme',
    showLoading: true,
    data
  })
}
//查询联合调度试算特征值信息
export async function getJointTrialEig(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getJointTrialEig',
    showLoading: false,
    params
  })
}
// 查询联合调度配置信息
export async function getJointTrialInfo(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getJointTrialInfo',
    showLoading: true,
    params
  })
}
//查询联合调度预报输出成果对象
export async function getJointTrialSection(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getJointTrialSection',
    showLoading: true,
    params
  })
}
//查询联合调度试算结果信息
export async function getJointTrialResult(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getJointTrialResult',
    showLoading: true,
    params
  })
}
//联合调度试算计算
export async function jointTrialCalculate(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/jointTrialCalculate',
    showLoading: true,
    data
  })
}
//删除联合调度试算方案
export async function deleteJointTrialScheme(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/deleteJointTrialScheme',
    showLoading: true,
    data
  })
}
//查询联合调度对比结果
export async function getJointTrialResultCompara(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getJointTrialResultCompara',
    showLoading: true,
    params
  })
}
// 查询站点智能预报成果
export async function getAiForecastResult(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/getAiForecastResult',
    showLoading: true,
    params
  })
}
// 查询模型错误重启设置
export async function getModelRestartSetting(params) {
  return gstyRequest.get({
    url: '/dispatch/manual/schemes/errorSet',
    showLoading: true,
    params
  })
}
//保存模型错误重启设置
export async function saveModelRestartSetting(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/saveErrorSet',
    showLoading: true,
    data
  })
}
export async function joinSetCheck(data) {
  return gstyRequest.post({
    url: '/dispatch/manual/schemes/setCheck',
    showLoading: true,
    data
  })
}
